projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46d40cd
)
gdk/surface: Reset position after hiding
author
Jonas Ådahl
<jadahl@gmail.com>
Wed, 19 Feb 2020 08:31:32 +0000
(09:31 +0100)
committer
Jonas Ådahl
<jadahl@gmail.com>
Wed, 19 Feb 2020 08:47:18 +0000
(09:47 +0100)
The x and y position of GdkSurface is only valid when visible, so reset
them to their inital state after hiding.
gdk/gdksurface.c
patch
|
blob
|
history
diff --git
a/gdk/gdksurface.c
b/gdk/gdksurface.c
index 7eb4280f8b5b9032bb0dc1f604762fffa740f95a..9790be98a3a8c8bdca7b01b97da21a087a9e2c71 100644
(file)
--- a/
gdk/gdksurface.c
+++ b/
gdk/gdksurface.c
@@
-2083,6
+2083,9
@@
G_GNUC_END_IGNORE_DEPRECATIONS
}
GDK_SURFACE_GET_CLASS (surface)->hide (surface);
+
+ surface->x = 0;
+ surface->y = 0;
}
/**